package com.edu.user.mapper;

import com.edu.api.entity.common.Pageable;
import com.edu.api.entity.user.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Entity com.edu.api.entity.user.User
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    /**
     * 添加后台用户
     * @param user
     * @return
     */
    Long register(@Param("user") User user);

    /**
     * 条件获取所有用户
     * @param pageable
     * @param user
     * @return
     */
    List<User> getAllUser(@Param("pageable") Pageable pageable,@Param("user") User user);

    Long deleteUserByIds(@Param("ids")List ids);

}




